package com.effectiv.gooruda.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import com.effectiv.gooruda.domain.TenantCompany;
import com.effectiv.gooruda.domain.TenantCompanyUser;


@Repository
public interface TenantCompanyUserRespository extends MongoRepository<TenantCompanyUser, String>{
	
	TenantCompanyUser findByEmail(String email);
	List<TenantCompanyUser> findByTenantCompany(TenantCompany company);
	List<TenantCompanyUser> findByTenantCompanyAndNameLike(TenantCompany company, String name);
}
